﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Electronic_work_order.Model
{
    //角色表
    public class UserRole
    {
        [Key]
        //RoleID 角色ID 自增ID
        public int RoleID { get; set; }

        //RoleName 角色名称
        public string RoleName { get; set; }
        
        //有效状态
        public int StateID { get; set; }

        [ForeignKey("StateID")]
        public virtual UserState  UserState { get; set; }

        //CreateTime 创建时间
        public DateTime CreateTime { get; set; }
    }
}
